package com.ahcloud.edas.gateway.core.domain.sync;

import com.ahcloud.edas.gateway.core.infrastructure.gateway.enums.DataEventTypeEnum;

/**
 * @program: edas
 * @description:
 * @author: YuKai Fan
 * @create: 2024/6/13 11:11
 **/
public class PluginSyncData implements BaseSyncData {

    /**
     * 路由id
     */
    private final String pluginName;

    /**
     * 版本
     */
    private final Integer version;

    private final DataEventTypeEnum eventType;

    public PluginSyncData(String pluginName, Integer version, DataEventTypeEnum eventType) {
        this.pluginName = pluginName;
        this.version = version;
        this.eventType = eventType;
    }

    public String getPluginName() {
        return pluginName;
    }

    public Integer getVersion() {
        return version;
    }

    @Override
    public DataEventTypeEnum getEventType() {
        return eventType;
    }
}
